-- GENERATED SPELL FOR [Ethereal Plunderer] --


function spell0_21368(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21368', 600, 1)
end

function Sorts_21368(pUnit, Event)
local choix_sorts_21368 = math.random(0, 0)
if choix_sorts_21368 == 0 then
pUnit:RegisterEvent('spell0_21368', 1, 1)
end
end

function mob21368_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21368', math.random(1500, 3000), 1)
end

function mob21368_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21368_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21368_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21368, 1, 'mob21368_Action')
RegisterUnitEvent(21368, 2, 'mob21368_Leave')
RegisterUnitEvent(21368, 3, 'mob21368_Kill')
RegisterUnitEvent(21368, 4, 'mob21368_Die')
